package com.entor.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.entor.model.Menu;
import com.entor.model.Msg;
import com.entor.service.BaseServiceI;

@Controller
@RequestMapping("/menuc")
public class MenuController extends BaseController<Menu>{
	
	@Resource(name="menuService")
	private BaseServiceI<Menu> mbsi;
	
	@RequestMapping("/index")
	public String index(){
		return "/menu/index";
	}
	@RequestMapping("/aoe")
	public String aoe(){
		return "/menu/addOrEdit";
	}
	
	@Override
	public List<Menu> find(Menu t) {
		return mbsi.find(t);
	}

	@Override
	public Msg insert(Menu t) {
		return mbsi.insert(t);
	}
	
	
	
	
	
	
}
